package com.hunan.api.catv.entity.po;

import java.io.Serializable;

/**
 * @author
 */
public class SystemUser implements Serializable {
    /**
     * 用户ID
     */
    private Integer sysUserId;

    /**
     * 角色ID
     */
    private Integer sysRoleId;

    /**
     * 用户昵称
     */
    private String sysUserName;

    /**
     * 用户邮箱
     */
    private String sysUserMail;

    /**
     * 用户密码
     */
    private String sysUserPwd;

    /**
     * 用户状态 0:锁定,1:正常
     */
    private Integer state;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 操作权限 0:可操作,1:不可操作
     */
    private Integer operateAuth;

    private static final long serialVersionUID = 1L;

    public Integer getSysUserId() {
        return sysUserId;
    }

    public void setSysUserId(Integer sysUserId) {
        this.sysUserId = sysUserId;
    }

    public Integer getSysRoleId() {
        return sysRoleId;
    }

    public void setSysRoleId(Integer sysRoleId) {
        this.sysRoleId = sysRoleId;
    }

    public String getSysUserName() {
        return sysUserName;
    }

    public void setSysUserName(String sysUserName) {
        this.sysUserName = sysUserName;
    }

    public String getSysUserMail() {
        return sysUserMail;
    }

    public void setSysUserMail(String sysUserMail) {
        this.sysUserMail = sysUserMail;
    }

    public String getSysUserPwd() {
        return sysUserPwd;
    }

    public void setSysUserPwd(String sysUserPwd) {
        this.sysUserPwd = sysUserPwd;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getOperateAuth() {
        return operateAuth;
    }

    public void setOperateAuth(Integer operateAuth) {
        this.operateAuth = operateAuth;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SystemUser other = (SystemUser) that;
        return (this.getSysUserId() == null ? other.getSysUserId() == null : this.getSysUserId().equals(other.getSysUserId()))
                && (this.getSysRoleId() == null ? other.getSysRoleId() == null : this.getSysRoleId().equals(other.getSysRoleId()))
                && (this.getSysUserName() == null ? other.getSysUserName() == null : this.getSysUserName().equals(other.getSysUserName()))
                && (this.getSysUserMail() == null ? other.getSysUserMail() == null : this.getSysUserMail().equals(other.getSysUserMail()))
                && (this.getSysUserPwd() == null ? other.getSysUserPwd() == null : this.getSysUserPwd().equals(other.getSysUserPwd()))
                && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
                && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
                && (this.getOperateAuth() == null ? other.getOperateAuth() == null : this.getOperateAuth().equals(other.getOperateAuth()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSysUserId() == null) ? 0 : getSysUserId().hashCode());
        result = prime * result + ((getSysRoleId() == null) ? 0 : getSysRoleId().hashCode());
        result = prime * result + ((getSysUserName() == null) ? 0 : getSysUserName().hashCode());
        result = prime * result + ((getSysUserMail() == null) ? 0 : getSysUserMail().hashCode());
        result = prime * result + ((getSysUserPwd() == null) ? 0 : getSysUserPwd().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getOperateAuth() == null) ? 0 : getOperateAuth().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sysUserId=").append(sysUserId);
        sb.append(", sysRoleId=").append(sysRoleId);
        sb.append(", sysUserName=").append(sysUserName);
        sb.append(", sysUserMail=").append(sysUserMail);
        sb.append(", sysUserPwd=").append(sysUserPwd);
        sb.append(", state=").append(state);
        sb.append(", phone=").append(phone);
        sb.append(", operateAuth=").append(operateAuth);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

}